package com.justcan.demo.cartoon.utils;

import android.content.Context;

/**
 * Created by James on 2016/9/13.
 * Note:
 */
public class DensityUtil {
    public static float getScale(Context context) {
        return context.getResources().getDisplayMetrics().density;
    }

    public static float getScaleForOldData(Context context) {
        return DensityUtil.getScale(context) / 2.0f;
    }
}
